import 'package:HnXG/pages/Login.dart';
import 'package:HnXG/snackbar.dart';
import 'package:flutter/material.dart';
import 'package:signalr_netcore/signalr_client.dart';





main()  {


  runApp(const MaterialApp(
    debugShowCheckedModeBanner: false,
    home: LoginPage()
  ));
}





//创建自定义组件container
class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return Center(
        child: Container(
            alignment: Alignment.center,
            margin: const EdgeInsets.fromLTRB(0, 60, 0, 0),
            //  transform: Matrix4.translationValues(0, 0, 20),
            // transform: Matrix4.rotationZ(0.2),
            transform: Matrix4.skewY(0.2),
            width: 300,
            height: 300,
            decoration: BoxDecoration(
                color: Colors.pink,
                border: Border.all(color: Colors.black, width: 2),
                borderRadius: BorderRadius.circular(10),
                boxShadow: const [
                  BoxShadow(
                    color: Colors.blue,
                    blurRadius: 20,
                  )
                ],
                gradient:
                    const LinearGradient(colors: [Colors.red, Colors.yellow])),
            child: const Text("hello flutter",
                style: TextStyle(color: Colors.white, fontSize: 30))));
  }
}